package com.bingxue.edu.management.shop.model.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 订单创建请求
 *
 * @author panbo
 * @since 2024/08/27 14:31
 */
@Data
@Schema(description = "订单创建请求")
public class OrderItemCreateReq {

    @Schema(description = "班级id")
    @NotEmpty(message = "班级id不能为空")
    private String classId;

    @Schema(description = "课次顺序列表")
    @NotEmpty(message = "课次列表不能为空")
    private List<Integer> lessonIndexes;

    @Schema(description = "总价")
    @Deprecated
    private BigDecimal actualTotalPrice;

    @Schema(description = "课单价")
    @Deprecated
    private BigDecimal actualUnitPrice;
}
